package net.maku.auth.core.token;

import net.maku.auth.core.user.UserDetail;

import java.util.List;

public interface TokenStoreCache {
    void saveUser(String accessToken, UserDetail user);

    void saveUser(String accessToken, UserDetail user, long expire);

    Long getExpire(String accessToken);

    UserDetail getUser(String accessToken);

    void deleteUser(String accessToken);

    List<String> getUserKeyList();
}
